<template>
    <div class="tab-cont">
        <div class="tab-title">
            <h2>
                {{ tab.title }}
            </h2>
        </div>
        <div class="tab-info" v-for="item in tab.info">
            <h2>{{ item.num}}<i>{{ item.dw }}</i></h2>
            <p>{{ item.text }}</p>
        </div>
    </div>
</template>

<script>
export default {
props:['tab']
}
</script>

<style lang="scss" scoped>
.tab-cont {
    width: 100%;
    height: 20%;
    background: url('../../../assets/images/num-cont.png') no-repeat 0 0/100% 100%;
    display: flex;
    .tab-title{
        width: 20%;
        height: 100%;
        background: url('../../../assets//images/title-bg.png') no-repeat 0 0/100% 100%;
        h2{
            width: 90%;
            height: 100%;
            text-align: center;
            color: #088fef;
            font-size: .1242rem;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            font-weight: bold;
        }
    }
    .tab-info{
        width: 26%;
        height: 100%;
        display: flex;
        flex-direction: column;
        color: white;
        justify-content: center;
        margin-left: .0521rem;
        h2{
            font-family: "MyFont";
            font-size: .0933rem;
            font-weight: bold;
        }
        i{
            font-size: .0633rem;
        }
        p{
            color: #636578;
            font-size: .0625rem;
        }
    }
}
</style>